<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<div class="panel-body">
    <div class="table-responsive no-border">
        <div class="datatable-top">
            <div class="pull-left">
                <form:form id="searchInForm" modelAttribute="turnInVo"  onsubmit="return loadDivForm('dc_waitTurnInPatientList','searchInForm','${ctx}/doctor/medicalRecord/allwaitDeptPatientList');" method="post" class="form-inline">
                    &nbsp;&nbsp;<label>姓名 ：</label><form:input path="name" htmlEscape="false" maxlength="50" class="form-control" />
                    &nbsp;&nbsp;<input type="radio" value="1" name="deptPatient"  onclick="changeRadio('1')"> 待入本科病人列表<%--<input type="radio" value="2" name="deptPatient" onclick="changeRadio('2')" checked>全院待入科病人列表&nbsp;&nbsp;--%>
                    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
                </form:form>
            </div>
        </div>
        <table id="contentTable" class="table table-bordered mg-t datatable">
            <thead>
            <tr>
                <th>住院号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>身份证号</th>
                <th>护理单元</th>
                <th>科室</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${list}" var="pat">
            <tr onclick="loadPatientFormData('${pat.id}')">
                <td>${pat.visitNo}</td>
                <td> ${pat.name}</td>
                <td> ${fns:getDictLabels(pat.sex, 'SEX_DICT', '')}</td>
                <td> ${pat.age}</td>
                <td> ${pat.idNo}</td>
                <td> ${fns:getDeptName(pat.wardCode, '')}</td>
                <td> ${fns:getDeptName(pat.deptStayed, '')}</td>
            </tr>
            </c:forEach>

        </table>
    </div>
</div>
